//
//  ZRTempViewController.swift
//  XJ8XWB
//
//  Created by 中二 on 2016/10/23.
//  Copyright © 2016年 中二. All rights reserved.
//

import UIKit

class ZRTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    
    }
    
    
    func setupUI(){
        view.backgroundColor = UIColor.white
        
        setupNav()
        
    }
    
    @objc private func pushClick(){
        let tempVc = ZRTempViewController()
        navigationController?.pushViewController(tempVc, animated: true)
        
        
        
    }
    
    // MARK: - 设置导航
    private func setupNav(){
       
        navigationItem.rightBarButtonItem = UIBarButtonItem(setHighlightedImgName: nil, title: "PUSH", target: self, action: #selector(pushClick))
        navigationItem.title = "是\(navigationController?.childViewControllers.count ?? 0)个控制器"
    }
}
